#include <stdio.h>

#pragma instrument function (toto, main)


int toto(int tab[])
{
	int sum = tab[0] + tab[1] + tab[2];
	
	int i;	
	for (i=0; i<200; ++i)
	{
		sum += tab[i] + 3*tab[i+1];
		tab[i+1] = sum;
	}
	
	sum += tab[0] + tab [1];
	
	for (i=1; i<500; ++i)
	{
		sum += tab[i] + 3*tab[i+1] + 4*tab[i-1];
		tab[i+1] = sum;
		tab[i+2] = 2*sum;
		tab[i+3] = 3*sum;
	}
	return sum;
}

int main(int argc, char **argv)
{
	
	int t[1000];
	
	
	int i,j;
	for( i=0; i<1000; i++)
	{
			t[i] = i;
	}
	
	toto(t);
	
	int tab[10][10];
	tab[2][8] = 27;
	

	for( i=0; i<10; i++)
	{
		for (j=0; j<10; j++)
			tab[i][j] = i*j;
	}

	printf("%d\n", tab[2][5]);	
	printf("%d\n", tab[5][7]);

	return 0;
}
